﻿@model Survey.Common.Models.Services.ILanguageModel

@this.CreateForm()

@* ROW *@

@AddControls(
    new Fieldset("w40p mh50 ", Str.Business.Common.Identification)
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput().SetSourceProperty(() => Model.Item.LanguageName),
        }
    },
    new Fieldset("w31p mh50 ", Str.Business.Common.Description)
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new TextOrInput(true)
                .SetSourceProperty(() => Model.Item.ID),

            new CheckBox()
                .SetSourceProperty(() => Model.Item.ShowFlag)
                .SetCssClassName(Str.Align.Left),
        }
    },
    new Fieldset("w72p mh50 ", "Names")
    {
        new DefinitionList
        {
            new TextOrInput(true)
                .SetSourceProperty(() => Model.Item.EnglishName),

            new TextOrInput(true)
                .SetSourceProperty(() => Model.Item.NativeName),
        }
    })

@this.CloseForm()